package com.lcj.bff.driver.service;

import com.lcj.bff.driver.controller.form.MessageIdForm;
import com.lcj.bff.driver.controller.form.SearchMessageByPageForm;
import com.lcj.common.util.Result;

public interface MessageService {

    /**
     * 分页查询消息
     * @param form
     * @return
     */
    Result searchMessageByPage(SearchMessageByPageForm form);

    /**
     * 根据id查询消息
     * @param form
     * @return
     */
    Result searchMessageById(MessageIdForm form);

    /**
     * 更新消息为已读
     * @param form
     * @return
     */
    Result updateUnreadMessage(MessageIdForm form);

    /**
     * 根据id删除消息
     * @param form
     * @return
     */
    Result deleteMessageRefById(MessageIdForm form);
}
